From 23cb39581de234714215a36620e703d90f31f2a6 Mon Sep 17 00:00:00 2001 From: robertl Date: Mon, 28 Apr 2003 14:58:27 +0000 Subject: [PATCH] Add Garmin icon mappings. --- gpsbabel/garmin.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gpsbabel/garmin.c b/gpsbabel/garmin.c index 0cc1ebf3d..0d3d3fd29 100644 --- a/gpsbabel/garmin.c +++ b/gpsbabel/garmin.c @@ -76,6 +76,8 @@ waypt_read(void) wpt_tmp->description = xstrdup(way[i]->cmnt); wpt_tmp->position.longitude.degrees = way[i]->lon; wpt_tmp->position.latitude.degrees = way[i]->lat; + wpt_tmp->icon_descr = + mps_find_desc_from_icon_number(way[i]->smbl); /* * If a unit doesn't store altitude info (i.e. a D103) * gpsmem will default the alt to INT_MAX. Other units @@ -262,6 +264,7 @@ data_write(void) } way[i]->lon = wpt->position.longitude.degrees; way[i]->lat = wpt->position.latitude.degrees; + way[i]->smbl = mps_find_icon_number_from_desc(wpt->icon_descr); if (wpt->position.altitude.altitude_meters != unknown_alt) { way[i]->alt = wpt->position.altitude.altitude_meters; } -- 2.30.2